export const tableInfo = {
  localize: {
    search: {
      url: "http://localhost:8080/customer/customer/search"
    },
    preset: {
      status: 1,
      userId: 2
    }
  },
  filters: [
    {
      name: "customerName",
      label: "客户名称"
    },
    {
      name: "status",
      label: "是否有效"
    },
    {
      name: "auditStatus",
      label: "审核状态"
    }
  ],
  columns: [
    {
      width: "50",
      label: "#",
      type: "index"
    },
    {
      label: "客户编号",
      name: "code"
    },
    {
      label: "客户名称",
      name: "name"
    },
    {
      label: "所属行业",
      name: "industryName"
    },
    {
      label: "公司网站",
      name: "url"
    },
    {
      label: "联系人",
      name: "contactName"
    },
    {
      label: "审核状态",
      name: "auditStatus"
    },
    {
      label: "公司简称",
      name: "abbr"
    },
    {
      label: "联系电话",
      name: "contactMobile"
    },
    {
      label: "是否有效",
      name: "statusName"
    },
    {
      label: "创建时间",
      name: "createAt"
    },
    {
      label: "操作",
      name: "action"
    }
  ],
  actions: []
};

class ViewData {
  constructor({ dirs, actions, entries }) {
    this.dirs = dirs;
    this.actions = actions;
    this.entries = entries;
  }
}

export { ViewData };
